package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.ProjectSecondResDao;
import net.huashitong.scheduling.dao.TownProjectListDao;
import net.huashitong.scheduling.entity.ProjectSecondRes;
import net.huashitong.scheduling.entity.TownProjectList;
import net.huashitong.scheduling.filter.ProjectReserveFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TownProjectListService extends StringPKService<TownProjectList> {
    @Autowired
    private TownProjectListDao dao;

    @Override
    protected BaseDao<TownProjectList, String> getDao(){
        // TODO Auto-generated method stub;
        return dao;
    }

    public List<TownProjectList> queryByMonthAndYear(String month,String year) {
        return dao.queryByMonthAndYear(month,year);
    }

    public List<TownProjectList> queryByfilter(ProjectReserveFilter filter){
        return dao.queryByfilter(filter);
    }
}
